﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010A9 RID: 4265
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneActorInfo : IMessage<SceneActorInfo>, IMessage, IEquatable<SceneActorInfo>, IDeepCloneable<SceneActorInfo>, IBufferMessage
	{
		// Token: 0x170035CD RID: 13773
		// (get) Token: 0x0600BE78 RID: 48760 RVA: 0x0020184F File Offset: 0x001FFA4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneActorInfo> Parser
		{
			get
			{
				return SceneActorInfo._parser;
			}
		}

		// Token: 0x170035CE RID: 13774
		// (get) Token: 0x0600BE79 RID: 48761 RVA: 0x00201856 File Offset: 0x001FFA56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneActorInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170035CF RID: 13775
		// (get) Token: 0x0600BE7A RID: 48762 RVA: 0x00201868 File Offset: 0x001FFA68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneActorInfo.Descriptor;
			}
		}

		// Token: 0x0600BE7B RID: 48763 RVA: 0x0020186F File Offset: 0x001FFA6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneActorInfo()
		{
		}

		// Token: 0x0600BE7C RID: 48764 RVA: 0x00201878 File Offset: 0x001FFA78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneActorInfo(SceneActorInfo other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.baseAvatarId_ = other.baseAvatarId_;
			this.uid_ = other.uid_;
			this.mapLayer_ = other.mapLayer_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BE7D RID: 48765 RVA: 0x002018CC File Offset: 0x001FFACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneActorInfo Clone()
		{
			return new SceneActorInfo(this);
		}

		// Token: 0x170035D0 RID: 13776
		// (get) Token: 0x0600BE7E RID: 48766 RVA: 0x002018D4 File Offset: 0x001FFAD4
		// (set) Token: 0x0600BE7F RID: 48767 RVA: 0x002018DC File Offset: 0x001FFADC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x170035D1 RID: 13777
		// (get) Token: 0x0600BE80 RID: 48768 RVA: 0x002018E5 File Offset: 0x001FFAE5
		// (set) Token: 0x0600BE81 RID: 48769 RVA: 0x002018ED File Offset: 0x001FFAED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x170035D2 RID: 13778
		// (get) Token: 0x0600BE82 RID: 48770 RVA: 0x002018F6 File Offset: 0x001FFAF6
		// (set) Token: 0x0600BE83 RID: 48771 RVA: 0x002018FE File Offset: 0x001FFAFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x170035D3 RID: 13779
		// (get) Token: 0x0600BE84 RID: 48772 RVA: 0x00201907 File Offset: 0x001FFB07
		// (set) Token: 0x0600BE85 RID: 48773 RVA: 0x0020190F File Offset: 0x001FFB0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MapLayer
		{
			get
			{
				return this.mapLayer_;
			}
			set
			{
				this.mapLayer_ = value;
			}
		}

		// Token: 0x0600BE86 RID: 48774 RVA: 0x00201918 File Offset: 0x001FFB18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneActorInfo);
		}

		// Token: 0x0600BE87 RID: 48775 RVA: 0x00201928 File Offset: 0x001FFB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneActorInfo other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.BaseAvatarId == other.BaseAvatarId && this.Uid == other.Uid && this.MapLayer == other.MapLayer && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BE88 RID: 48776 RVA: 0x00201994 File Offset: 0x001FFB94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.MapLayer != 0U)
			{
				num ^= this.MapLayer.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BE89 RID: 48777 RVA: 0x00201A24 File Offset: 0x001FFC24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BE8A RID: 48778 RVA: 0x00201A2C File Offset: 0x001FFC2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BE8B RID: 48779 RVA: 0x00201A38 File Offset: 0x001FFC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MapLayer != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MapLayer);
			}
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Uid);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BE8C RID: 48780 RVA: 0x00201ACC File Offset: 0x001FFCCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.MapLayer != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MapLayer);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BE8D RID: 48781 RVA: 0x00201B54 File Offset: 0x001FFD54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneActorInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.MapLayer != 0U)
			{
				this.MapLayer = other.MapLayer;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BE8E RID: 48782 RVA: 0x00201BCC File Offset: 0x001FFDCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BE8F RID: 48783 RVA: 0x00201BD8 File Offset: 0x001FFDD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 16U)
					{
						this.MapLayer = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.BaseAvatarId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 40U)
					{
						this.Uid = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004C9D RID: 19613
		private static readonly MessageParser<SceneActorInfo> _parser = new MessageParser<SceneActorInfo>(() => new SceneActorInfo());

		// Token: 0x04004C9E RID: 19614
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C9F RID: 19615
		public const int AvatarTypeFieldNumber = 7;

		// Token: 0x04004CA0 RID: 19616
		private AvatarType avatarType_;

		// Token: 0x04004CA1 RID: 19617
		public const int BaseAvatarIdFieldNumber = 3;

		// Token: 0x04004CA2 RID: 19618
		private uint baseAvatarId_;

		// Token: 0x04004CA3 RID: 19619
		public const int UidFieldNumber = 5;

		// Token: 0x04004CA4 RID: 19620
		private uint uid_;

		// Token: 0x04004CA5 RID: 19621
		public const int MapLayerFieldNumber = 2;

		// Token: 0x04004CA6 RID: 19622
		private uint mapLayer_;
	}
}
